﻿@model NextInventory.Model.Menufacturer.MenufacturerModel

<div id="menufacturerDetail">
    @using (Ajax.BeginForm(new AjaxOptions { HttpMethod = "POST", InsertionMode = InsertionMode.Replace, UpdateTargetId = "menufacturerDetail" }))
    {
        @Html.HiddenFor(model => model.MenufacturerId)       

        <table id="id-form" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td></td>
                <td>@Html.ValidationSummary(false)</td>
            </tr>
            <tr>
                <th>
                    @Html.LabelFor(model => model.Name)

                </th>
                <td>
                    @Html.TextBoxFor(model => model.Name, new { @class = "inp-form", @id = "menufacturerName" })
                    @Html.ValidationMessageFor(model => model.Name)
                </td>
            </tr>
            <tr>
                <th>
                    @Html.LabelFor(model => model.Phone)
                </th>
                <td>
                    @Html.TextAreaFor(model => model.Phone, new { @class = "inp-form", @id = "phone" })
                    @Html.ValidationMessageFor(model => model.Phone)
                </td>
            </tr>
            <tr>
                <th>
                    @Html.LabelFor(model => model.Email)
                </th>
                <td>
                    @Html.TextAreaFor(model => model.Email, new { @class = "inp-form", @id = "email" })
                    @Html.ValidationMessageFor(model => model.Email)
                </td>
            </tr>
            <tr>
                <th>
                    @Html.LabelFor(model => model.Address)
                </th>
                <td>
                    @Html.TextAreaFor(model => model.Address, new { @class = "inp-form", @id = "address" })
                    @Html.ValidationMessageFor(model => model.Address)
                </td>
            </tr>
            <tr>
                <th>
                    @Html.LabelFor(model => model.City)
                </th>
                <td>
                    @Html.TextAreaFor(model => model.City, new { @class = "inp-form", @id = "city" })
                    @Html.ValidationMessageFor(model => model.City)
                </td>
            </tr>
            <tr>
                <th>
                    @Html.LabelFor(model => model.Country)
                </th>
                <td>
                    @Html.TextAreaFor(model => model.Country, new { @class = "inp-form", @id = "country" })
                    @Html.ValidationMessageFor(model => model.Country)
                </td>
            </tr>
            <tr>
                <th></th>
                <td>
                    <input type="submit" value="Save" class="form-submit" />
                    <input type="reset" value="Reset" class="form-reset" />
                </td>
            </tr>
        </table>
    }

</div>
